package simonxianyu.learn.springmybatis.db.mapper;

import org.apache.ibatis.annotations.Param;
import simonxianyu.learn.springmybatis.db.BaseMapper;
import simonxianyu.learn.springmybatis.db.po.Device;

import java.util.List;

/**
 *
 * Created by simon on 2017/2/21.
 */
public interface DeviceMapper extends BaseMapper<Device, Long> {
  long countAll(@Param("partnerNo")String partnerNo);
  List<Device> findAllPaged(
      @Param("pid")String partnerId, @Param("start") int start, @Param("size") int size);
}
